<?php
// +----------------------------------------------------------------------
// | Bwsaas
// +----------------------------------------------------------------------
// | Copyright (c) 2015~2020 http://www.buwangyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Gitee ( https://gitee.com/buwangyun/bwsaas )
// +----------------------------------------------------------------------
// | Author: buwangyun <hnlg666@163.com>
// +----------------------------------------------------------------------
// | Date: 2020-9-28 10:55:00
// +----------------------------------------------------------------------

namespace buwang\base;

use think\App;

class Home extends BaseController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        // 控制器初始化
        $this->initialize();
    }

    // 初始化
    protected function initialize()
    {

    }

    /**
     * 模板变量赋值
     *
     * @param string|array $name  模板变量
     * @param mixed        $value 变量值
     *
     * @return mixed
     */
    protected function assign($name, $value = NULL) {
        return $this->app->view->assign($name, $value);
    }
}